<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <link rel="stylesheet" href="{$path}/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
</head>

<body>
    <div class="container">
        <!-- 左侧登录表单区域 -->
        <div class="left-section">
            <h1 class="headline">{$software_name}</h1>

            <div class="form-group">
                <label for="email">邮箱</label>
                <input type="text" id="email" name="email" class="username_input" value="{$username}" placeholder="请输入您的邮箱">
            </div>

            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" class="password_input" value="{$password}" placeholder="请输入您的密码">
            </div>

            <div class="remember-forgot">
                <label class="remember-me">
                    <input type="checkbox" id="remember">
                    记住我
                </label>
                <a href="#" class="forgot-password">忘记密码？</a>
            </div>

            <button type="submit" class="signin-btn" onclick="login()">登录</button>

            <p class="signup-link">
                还没有账户？ <a href="#">免费注册！</a>
            </p>
        </div>

        <!-- 右侧图片区域 -->
        <div class="right-section">
            <div class="image-container">
                <!-- 使用CSS背景图片替代实际图片 -->
            </div>
        </div>
    </div>
</body>

<script src="{$path}/js/jquery.min.js"></script>
<script>
    var p_url = "{$publish_url}";
    p_url = p_url.replace(/amp;/g, "");

    function login() {
        if ($('.username_input').val() != 'ceshi') {
            alert('用户名不存在');
            return false;
        }
        if ($('.password_input').val() != '123456') {
            alert('密码错误');
            return false;
        }
        location.href = p_url;
    }
</script>

</html>